package com.fs.system.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.common.core.controller.BaseController;
import com.fs.common.core.page.PageDomain;
import com.fs.common.core.page.TableDataInfo;
import com.fs.common.core.pojo.SysUser;
import com.fs.common.core.vo.AjaxResult;
import com.fs.common.util.page.PageUtils;
import com.fs.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author suke
 * @version 1.0
 * @title SysUserController
 * @description
 * @create 2024/7/29 15:48
 */
@RestController
@RequestMapping("/system/user")
public class SysUserController extends BaseController {
    @Autowired
    private ISysUserService sysUserService;

    @GetMapping("list")
    public TableDataInfo  list(SysUser sysUser){
        PageDomain pageDomain = PageUtils.startPage();
        Page<SysUser> page = sysUserService.selectUserList(pageDomain, sysUser);
        return  this.getDataTable(page);
    }
    @DeleteMapping("/{userIds}")
    public AjaxResult remove(@PathVariable Long[] userIds) {
        return null;
    }
}
